import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: "hash",
  routes: [{
      path: "/",
      name: "首页",
      redirect: "/home",
      component: () => import("@/pages/home/Home")
    },

    {
      path: "/login",
      name: "登录首页",
      redirect: "/home",
      component: () => import("@/pages/home/Home")
    },
    {
      path: "/home",
      name: "首页home",
      component: () => import("@/pages/home/Home"),
      redirect: "/home/orgLogin",
      children: [{
        path: "/home/orgLogin",
        name: "/home/orgLogin",
        component: () => import("@/pages/home/orgLogin")
      }]
    },
    // <------------////////////////线下客户客户登录内容//////////////////----------------->

    {
      path: "/org/changepassword",
      name: "线下客户客户忘记密码",
      component: () => import("@/pages/org/orgChangepassword"),
      children: [{
        path: "/org/passwordretrieve2",
        name: "/org/passwordretrieve2",
        component: () => import("@/pages/org/PasswordRetrieve2")
      }]
    },
    {
      path: "/org/infochange",
      name: "线下的客户信息修改",
      component: () => import("@/pages/org/infoChange"),
      redirect: "/org/infoset/allinfoChange"
    },
    {
      path: "/org/passwordretrieve1",
      name: "/org/passwordretrieve1",
      component: () => import("@/pages/org/PasswordRetrieve1")
    },
    {
      path: "/org/passwordretrieve3",
      name: "/org/passwordretrieve3",
      component: () => import("@/pages/org/PasswordRetrieve3")
    },
    {
      path: "/org/pawRetrieveRes",
      name: "/org/pawRetrieveRes",
      component: () => import("@/pages/org/pawRetrieveRes")
    },
    // -------------------------
    {
      path: "/vs",
      name: "审核状态",
      component: () => import("@/pages/member/ViewStatus")
    },
    {
      path: "/openspe",
      name: "去开通特约商户",
      component: () => import("@/pages/member/OpenSpe")
    },
    {
      path: "/op",
      name: "线下客户客户须知",
      component: () => import("@/pages/member/OrgPrepare")
    },
    {
      path: "/emailres/:id/:num",
      name: "邮箱激活",
      component: () => import("@/pages/member/EmailRes")
    },
    {
      path: "/Videorequire",
      name: "视频认证须知",
      component: () => import("@/pages/member/Videorequire")
    },
    {
      path: "/setpassword",
      name: "首次设置密码",
      component: () => import("@/pages/member/firstSetpwd")
    },

    // 新首页内容
    {
      path: "/userindex",
      name: "userindex",
      component: () => import("@/pages/userpages/userindex"),
      redirect: "/userMain",
      children: [{
          path: "/userMain",
          name: "/userMain",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/userpages/userMain")
        },
        {
          path: "/OrgRegister",
          name: "线下客户注册",
          component: () => import("@/pages/member/OrgRegister"),
          redirect: "/OrgRegister/typeSelect/step1",
          children: [
            // {
            //   path: "/OrgRegister/step1",
            //   name: "/OrgRegister/step1",
            //   component: () => import("@/pages/member/OrgRegister/step1")
            // },
            // {
            //   path: "/OrgRegister/step2",
            //   name: "/OrgRegister/step2",
            //   component: () => import("@/pages/member/OrgRegister/step2")
            // },
            // {
            //   path: "/OrgRegister/step3",
            //   name: "/OrgRegister/step3",
            //   component: () => import("@/pages/member/OrgRegister/step3")
            // },
            {
              path: "/OrgRegister/typeSelect/step1",
              name: "/OrgRegister/typeSelect/step1",
              meta: {
                toolParams:'EXPAND_MERCHANT',
                requireAuth: true,
              },
              // meta: {
              //   requireAuth: true,
              // },
              component: () => import("@/pages/member/OrgRegister/step1")
            },
            {
              path: "/OrgRegister/step11",
              name: "/OrgRegister/step11",
              component: () => import("@/pages/member/OrgRegister/step11"),
              redirect: "/OrgRegister/userTypeA/step1",
              children: [{
                  path: "/OrgRegister/userTypeA/step1",
                  name: "/OrgRegister/userTypeA",
                  component: () =>
                    import("@/pages/member/OrgRegister/userTypeA")
                },
                {
                  path: "/OrgRegister/userTypeB/step1",
                  name: "/OrgRegister/userTypeB",
                  component: () =>
                    import("@/pages/member/OrgRegister/userTypeB")
                }
              ]
            },
            {
              path: "/OrgRegister/step2",
              name: "/OrgRegister/step2",
              meta: {
                requireAuth: false,
                allowBack: false
              },
              component: () => import("@/pages/member/OrgRegister/step2"),
              redirect: "/OrgRegister/dataUploadA/step2",
              children: [{
                  path: "/OrgRegister/dataUploadA/step2",
                  name: "/OrgRegister/dataUploadA",
                  component: () =>
                    import("@/pages/member/OrgRegister/dataUploadA")
                },
                {
                  path: "/OrgRegister/dataUploadB/step2",
                  name: "/OrgRegister/dataUploadB",
                  component: () =>
                    import("@/pages/member/OrgRegister/dataUploadB")
                }
              ]
            },
            {
              path: "/OrgRegister/otherDataA/step3",
              name: "/OrgRegister/otherDataA/step3",
              meta: {
                requireAuth: false
              },
              component: () => import("@/pages/member/OrgRegister/step3")
            },
            {
              path: "/OrgRegister/configureA/step4",
              name: "/OrgRegister/configureA/step4",
              meta: {
                requireAuth: false
              },
              component: () => import("@/pages/member/OrgRegister/step4")
            },
            {
              path: "/OrgRegister/configureB/step4",
              name: "/OrgRegister/configureB/step4",
              meta: {
                requireAuth: false
              },
              component: () => import("@/pages/member/OrgRegister/step4")
            },
            {
              path: "/OrgRegister/step5",
              name: "/OrgRegister/step5",
              // meta: {
              //   requireAuth: true,
              // },
              component: () => import("@/pages/member/OrgRegister/step7")
            },
          ]
        },
        //合作机构注册
        {
          path: "/PartnersRegister",
          name: "合作机构注册",
          component: () => import("@/pages/member/Partners/PartnersRegister"),
          redirect: "/Partners/typeChoose",
          children: [{
              path: "/Partners/typeChoose",
              name: "/Partners/typeChoose",
               meta: {
                requireAuth: true,
                toolParams:'EXPAND_SERVICE_PROVIDER'
              },
              component: () => import("@/pages/member/Partners/typeChoose")
            },
            {
              path: "/Partners/userTypeA/step1",
              name: "/Partners/userTypeA/step1",
              component: () => import("@/pages/member/Partners/userTypeA")
            },
            {
              path: "/Partners/userTypeB/step1",
              name: "/Partners/userTypeB/step1",
              component: () => import("@/pages/member/Partners/userTypeB")
            },
            {
              path: "/Partners/PartnersAdmin/step1",
              name: "合作机构新增(超级管理员)",
              // meta: {
              //   requireAuth: true,
              //   keepAlive: true
              // },
              component: () => import("@/pages/member/Partners/PartnersAdmin")
            },
            {
              path: "/Partners/dataUploadA/step2",
              name: "/Partners/dataUploadA/step2",
              component: () => import("@/pages/member/Partners/dataUploadA")
            },
            {
              path: "/Partners/dataUploadB/step2",
              name: "/Partners/dataUploadB/step2",
              component: () => import("@/pages/member/Partners/dataUploadB")
            },
            {
              path: "/Partners/:queryid/step3",
              name: "/Partners/step3",
              component: () => import("@/pages/member/Partners/step3")
            },
            {
              path: "/Partners/admin/:queryid/step3",
              name: "/Partners/admin/step3",
              component: () => import("@/pages/member/Partners/adminstep3")
            },
            {
              path: "/Partners/step4",
              name: "/Partners/step4",
              component: () => import("@/pages/member/Partners/step4"),
              redirect: "/Partners/userTypeA/step4",
              children: [{
                  path: "/Partners/userTypeA/step4",
                  name: "/Partners/userTypeA",
                  component: () => import("@/pages/member/Partners/userTypeA")
                },
                {
                  path: "/Partners/userTypeB/step4",
                  name: "/Partners/userTypeB",
                  component: () => import("@/pages/member/Partners/userTypeB")
                }
              ]
            }
          ]
        },

        {
          path: "/Partners/PartnersAdminAuditQuery",
          name: "合作机构审核查询(超级管理员)",

          component: () => import("@/pages/member/Partners/PartnersAdminAuditQuery")
        },
        {
          path: "/Partners/PartnersAuditQuery",
          name: "合作机构审核查询",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/member/Partners/PartnersAuditQuery")
        },
        {
          path: "/Partners/PartnersAuditQueryDetail/:id",
          name: "合作机构审核查询详情",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/member/Partners/PartnersAuditQueryDetail")
        },
        {
          path: "/Partners/PartnersInfoQuery",
          name: "合作机构信息查询",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/member/Partners/PartnersInfoQuery")
        },
        {
          path: "/Partners/PartnersInfoQueryDetail/:id",
          name: "合作机构信息查询详情",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/member/Partners/PartnersInfoQueryDetail")
        },
        {
          path: "/OrgRegister/orgAuditQuery",
          name: "商户审核查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/member/OrgRegister/orgAuditQuery")
        },
        {
          path: "/OrgRegister/orgInfoQuery",
          name: "商户信息查询",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/member/OrgRegister/orgInfoQuery")
        },
        {
          path: "/OrgRegister/orgAuditQueryDetail/:id",
          name: "商户审核查询详情",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/member/OrgRegister/orgAuditQueryDetail")
        },
        {
          path: "/OrgRegister/orgInfoQueryDetail/:id",
          name: "商户信息查询详情",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/member/OrgRegister/orgInfoQueryDetail")
        },
        {
          path: "/OrgRegister/openWeChat/:memberNo",
          name: "开通微信",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/member/OrgRegister/openWeChat")
        },
        {
          path: "/OrgRegister/openAlipay/:memberNo",
          name: "开通支付宝",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/member/OrgRegister/openAlipay")
        },
        {
          path: "/OrgRegister/QRcode/:type",
          name: "二维码提交成功",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/member/OrgRegister/QRcodeSuccess")
        },
        {
          path: "/OrgRegister/orgInfoModify/orgInfoModify",
          name: "商户信息修改",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/member/OrgRegister/orgInfoModify/orgInfoModify"),
          children: [{
              path: "/OrgRegister/orgInfoModify/comInfoModify/:id/:type",
              name: "一般信息修改",
              component: () => import("@/pages/member/OrgRegister/orgInfoModify/comInfoModify")
            },
            {
              path: "/OrgRegister/orgInfoModify/mainInfoModify/:id/:type",
              name: "重要信息修改",
              component: () =>
                import("@/pages/member/OrgRegister/orgInfoModify/mainInfoModify")
            },
            {
              path: "/OrgRegister/orgInfoModify/configModify/:id/:type",
              name: "业务配置",
              component: () =>
                import("@/pages/member/OrgRegister/orgInfoModify/configModify")
            },
            {
              path: "/OrgRegister/orgInfoModify/benefitModify/:id/:type",
              name: "受益所有人变更",
              component: () =>
                import("@/pages/member/OrgRegister/orgInfoModify/benefitModify")
            },
          ]
        },
        {
          path: "/per/accountmanage/myinfo",
          name: "个人我的信息",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/per/accountManage/myInfo")
        },
        {
          path: "/per/infoset/allinfoChange",
          name: "个人客户一般信息修改",
          component: () => import("@/pages/per/accountManage/allinfoChange"),
          children: [{
              path: "/per/infoset/cominfochange",
              name: "个人一般信息修改",
              component: () => import("@/pages/per/accountManage/cominfoChange")
            },
            {
              path: "/per/infoset/maininfochange",
              name: "个人重要信息修改",
              component: () =>
                import("@/pages/per/accountManage/maininfoChange")
            }
          ]
        },
        // {
        //   path: "/per/infoset/cominfochange",
        //   name: "个人一般信息修改",
        //   component: () =>
        //     import("@/pages/per/accountManage/cominfoChange")
        // },
        // {
        //   path: "/per/infoset/maininfochange",
        //   name: "个人重要信息修改",
        //   component: () =>
        //     import("@/pages/per/accountManage/maininfoChange")
        // },

        {
          path: "/per/accountmanage/setting",
          name: "个人客户安全设置",
          component: () => import("@/pages/per/safeSet"),
          redirect: "/per/safeset/modifyloginpw",
          children: [{
              path: "/per/safeset/modifyloginpw",
              name: "个人客户修改登录密码",
              component: () => import("@/pages/org/accountManage/modifyloginpw")
            },
            {
              path: "/per/safeset/modifypayindex",
              name: "个人客户修改支付密码",
              component: () => import("@/pages/per/accountManage/modifypaypw"),
              redirect: "/per/safeset/modifypayindex/modifypaypw",
              children: [{
                  path: "/per/safeset/modifypayindex/modifypaypw",
                  name: "个人客户修改支付密码1",
                  component: () =>
                    import("@/pages/per/accountManage/modifypaypw")
                },
                {
                  path: "/per/safeset/modifypayindex/modifypaypw2",
                  name: "个人手机验证修改支付密码",
                  component: () =>
                    import("@/pages/per/accountManage/modifypaypw2")
                },
                {
                  path: "/per/safeset/modifypayindex/modifypaypw3",
                  name: "支付密码修改第三步",
                  component: () =>
                    import("@/pages/per/accountManage/modifypaypw3")
                }
              ]
            },
            {
              path: "/per/safeset/modifysafe",
              name: "个人修改密保问题",
              component: () => import("@/pages/org/accountManage/modifysafe")
            }
          ]
        },

        //个人客户
        {
          path: "/perCashOut",
          name: "个人客户提现",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/cash/perCashOut")
        },
        {
          path: "/marketCashOut",
          name: "营销账户提现",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/cash/marketCashOut")
        },
        {
          path: "/perConfirmCashOut",
          name: "提现确认",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/cash/perConfirmCashOut")
        },
        {
          path: "/marketConfirmCashOut",
          name: "营销账户提现确认",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/cash/marketConfirmCashOut")
        },
        {
          path: "/perCashResult",
          name: "提现完成",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/cash/perCashResult.vue")
        },
        {
          path: "/per/accountmanage/perbankset",
          name: "个人银行卡设置",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/per/perBankset")
        },
        {
          path: "/perRecharge",
          name: "个人客户充值",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/cash/perRecharge.vue")
        },
        {
          path: "/perConfirmRecharge",
          name: "个人客户充值确认",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/cash/perConfirmRecharge")
        },
        {
          path: "/allPayment",
          name: "付款",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/cash/allPayment")
        },
        {
          path: "/allPaymentconfirm",
          name: "客户转账确认",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/cash/allPaymentconfirm")
        },
        //银行卡新增
        {
          path: "/per/bankadd/bankno",
          name: "银行卡新增step1",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/per/bankAdd/bankNo")
        },
        {
          path: "/per/bankadd/savecard",
          name: "银行卡新增储蓄卡",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/per/bankAdd/bankCard")
        },
        {
          path: "/per/bankadd/bankvcode",
          name: "银行卡验证码",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/per/bankAdd/bankVcode")
        },
        {
          path: "/per/bankadd/addbankres",
          name: "银行卡新增结果",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/per/bankAdd/addBankres")
        },
        //线下客户客户
        {
          path: "/transReportQuery",
          name: "交易分润明细查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transReportQuery")
        },
        {
          path: "/transReportDownload",
          name: "交易分润明细下载",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transReportDownload")
        },
        {
          path: "/withdrawReportDownload",
          name: "提现明细下载",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/withdrawReportDownload")
        },
        {
          path: "/org/transmanage/transquery",
          name: "线下客户交易查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transManage/transQuery")
        },
        //线下客户客户交易查询详情
        {
          path: "/org/transmanage/:id/transquerydetail",
          name: "线下客户交易查询详情",
          meta: {
            requireAuth: true
          },
          component: () => import("@/pages/org/transManage/transQueryDetail")
        },
        {
          path: "/org/transmanage/:id/qrcodedetail",
          name: "线下客户二维码交易查询详情",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () =>
            import("@/pages/org/transManage/transQueryQRcodeDetail")
        },
        {
          path: "/org/transmanage/:id/Unionpayqrcodedetail",
          name: "银联二维码交易查询详情",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () =>
            import("@/pages/org/transManage/transQueryUnionpayQRcodeDetail")
        },
        {
          path: "/org/transmanage/:id/qrcoderefund",
          name: "线下客户二维码退款详情",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () =>
            import("@/pages/org/transManage/transQueryQRcodeRefund")
        },
        {
          path: "/org/transmanage/payquery",
          name: "线下客户代付查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transManage/payQuery")
        },
        {
          path: "/org/transmanage/:id/payquerydetail",
          name: "线下客户代付查询详情",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transManage/payQueryDetail")
        },
        {
          path: "/org/transmanage/cashoutquery",
          name: "提现明细查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transManage/cashOutQuery")
        },
        {
          path: "/org/transmanage/addnewrate/:mertype",
          name: "新增模板",
          // meta: {
          //   requireAuth: true,
          //   keepAlive: true
          // },
          component: () => import("@/pages/org/transManage/addNewRate/newrate"),
          children: [{
              path: "/addnewrate/newMerRate",
              name: "新增商户费率",
              component: () =>
                import("@/pages/org/transManage/addNewRate/newMerRate")
            },
            {
              path: "/addnewrate/orgMerRate",
              name: "新增合作机构费率",
              component: () =>
                import("@/pages/org/transManage/addNewRate/newOrgRate")
            },
          ]
        },
        {
          path: "/org/transmanage/selfratequery",
          name: "费率查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transManage/selfRateQuery")
        },
        {
          path: "/org/transmanage/rateTemplate",
          name: "线下客户费率模板管理",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transManage/rateTemplate")
        },
        {
          // path: "/org/transmanage/merratequery/:id/:feeTypeName/:name",
          path: "/org/transmanage/merratequery/:id",
          name: "商户客户费率查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transManage/merRateQuery")
        },
        {
          path: "/org/transmanage/merratequerychange/:id/:feeTypeName?/:name?",
          name: "商户客户费率修改",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transManage/merRateQueryChange")
        },
        {
          path: "/org/transmanage/orgratequery/:id/:feeTypeName?/:name?",
          name: "合作机构费率查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transManage/orgRateQuery")
        },
        {
          path: "/org/transmanage/orgratequerychange/:id/:feeTypeName?/:name?",
          name: "合作机构费率修改",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transManage/orgRateQueryChange")
        },

        {
          path: "/org/transmanage/quotaquery",
          name: "线下客户限额查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/transManage/quotaQuery")
        },
        {
          path: "/org/financemanage/financequery",
          name: "线下客户账务明细查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/financeManage/financeQuery")
        },
        {
          path: "/org/accountmanage/myinfo",
          name: "线下客户我的信息",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("@/pages/org/accountManage/myInfo")
        },
        {
          path: "/org/infoset/allinfoChange",
          name: "线下客户信息修改",
          component: () => import("@/pages/org/accountManage/allinfoChange"),
          children: [{
              path: "/org/infoset/cominfochange",
              name: "线下客户一般信息修改",
              component: () => import("@/pages/org/accountManage/cominfoChange")
            },
            {
              path: "/org/infoset/maininfochange",
              name: "线下客户重要信息修改",
              component: () =>
                import("@/pages/org/accountManage/maininfoChange")
            }
          ]
        },

        {
          path: "/org/accountmanage/setting",
          name: "线下客户安全设置",
          component: () => import("@/pages/org/safeSet"),
          redirect: "/org/safeset/modifyloginpw",
          children: [{
              path: "/org/safeset/modifyloginpw",
              name: "线下客户客户修改登录密码",
              component: () => import("@/pages/org/accountManage/modifyloginpw")
            },
            {
              path: "/org/safeset/modifypayindex",
              name: "线下客户客户修改支付密码",
              component: () => import("@/pages/org/accountManage/modifypaypw"),
              redirect: "/org/safeset/modifypayindex/modifypaypw",
              children: [{
                  path: "/org/safeset/modifypayindex/modifypaypw",
                  name: "线下客户客户修改支付密码1",
                  component: () =>
                    import("@/pages/org/accountManage/modifypaypw")
                },
                {
                  path: "/org/safeset/modifypayindex/modifypaypw1",
                  name: "邮箱验证修改支付密码",
                  component: () =>
                    import("@/pages/org/accountManage/modifypaypw1")
                },
                {
                  path: "/org/safeset/modifypayindex/modifypaypw2",
                  name: "线下客户手机验证修改支付密码",
                  component: () =>
                    import("@/pages/org/accountManage/modifypaypw2")
                },
                {
                  path: "/org/safeset/modifypayindex/modifypaypw3",
                  name: "线下客户支付密码修改第三步",
                  component: () =>
                    import("@/pages/org/accountManage/modifypaypw3")
                }
              ]
            },
            {
              path: "/org/safeset/modifysafe",
              name: "线下客户修改密保问题",
              component: () => import("@/pages/org/accountManage/modifysafe")
            }
          ]
        },


        //防伪信息配置
        {
          path: "/AntiCounterfeiting/Config",
          name: "防伪信息配置",
          component: () =>
            import("@/pages/org/AntiCounterfeiting.vue")
        },
            // 暂无权限页面

        //线下客户客户充值
        {
          path: "/orgRecharge",
          name: "线下客户客户企业充值",
          component: () => import("@/pages/cash/orgRecharge.vue")
        },
        {
          path: "/ConfirmRecharge",
          name: "确认充值成功",
          component: () => import("@/pages/cash/ConfirmRecharge.vue")
        },
        {
          path: "/org/ProductionRequest",
          name: "q3drerr",
          component: () => import("@/pages/org/ProductionRequest.vue")
        },
        {
          path: "/org/Productionsucc",
          name: "上线申请成功",
          component: () => import("@/pages/org/Productionsucc.vue")
        },
        {
          path: "/busRequestChange",
          name: "业务变更申请",
          component: () => import("@/pages/org/busRequestChange")
        },
        {
          path: "/paw",
          name: "paw",
          meta: {
            requireAuth: true,
            keepAlive: false // 不需要缓存
          },
          component: () => import("@/pages/userpages/paw")
        },
        {
          path: "/quickpay",
          name: "开通快捷支付",
          component: () => import("../pages/per/bankAdd/quickpay.vue")
        },
        {
          path: "/quickpaySuccess",
          name: "开通快捷支付成功",
          component: () => import("../pages/per/bankAdd/quickpaySuccess.vue")
        },
        {
          path: "/messageList",
          name: "消息列表",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("../pages/message/messageList")
        },
        {
          path: "/messageDetail",
          name: "消息详情页",
          component: () => import("../pages/message/messageDetail")
        },
        //上线申请成功
        {
          path: "/org/Production/succ",
          name: "/org/Production/succ",
          component: () => import("@/pages/org/Productionsucc")
        },
        {
          path: "/ConsultationList1",
          name: "技术咨询",
          component: () => import("../pages/Consultation/ConsultationList")
        },
        {
          path: "/ConsultationAdd1",
          name: "技术发帖",
          component: () => import("../pages/Consultation/ConsultationAdd")
        },
        {
          path: "/ConsultationDetail1",
          name: "技术回复",
          component: () => import("../pages/Consultation/ConsultationDetail")
        },
        {
          path: "/ConsultationList2",
          name: "客服咨询",
          component: () =>
            import("../pages/Consultation/service/ConsultationList")
        },
        {
          path: "/ConsultationAdd2",
          name: "客服发帖",
          component: () =>
            import("../pages/Consultation/service/ConsultationAdd")
        },
        {
          path: "/ConsultationDetail2",
          name: "客服回复",
          component: () =>
            import("../pages/Consultation/service/ConsultationDetail")
        },
        {
          path: "/newReceipt",
          name: "新增收单分账",
          component: () => import("../pages/splitaccount/Receipt/newReceipt")
        },
        {
          path: "/listStatusQuery",
          name: "收单分账审核列表",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () =>
            import("../pages/splitaccount/Receipt/listStatusQuery")
        },
        {
          path: "/listStatusQueryDetail",
          name: "收单分账审核列表详情",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () =>
            import("../pages/splitaccount/Receipt/listStatusQueryDetail")
        },
        {
          path: "/receiptListQuery",
          name: "收单分账名单查询列表",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () =>
            import("../pages/splitaccount/Receipt/receiptListQuery")
        },
        {
          path: "/receiptSubLedgerQuery",
          name: "收单分账查询列表",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () =>
            import("../pages/splitaccount/Receipt/receiptSubLedgerQuery")
        },
        {
          path: "/:id/receiptSubLedgerQueryDetail",
          name: "收单分账查询列表详情",
          component: () =>
            import("../pages/splitaccount/Receipt/receiptSubLedgerQueryDetail")
        },
        //分账
        {
          path: "/Uploadplan",
          name: "上传收单分账计划",
          component: () => import("../pages/splitaccount/Charge/Uploadplan")
        },
        {
          path: "/Confirmaccount",
          name: "确认收单分账",
          component: () => import("../pages/splitaccount/Charge/Confirmaccount")
        },
        {
          path: "/Queryaccount",
          name: "查询收单分账",
          component: () => import("../pages/splitaccount/Charge/Queryaccount")
        },
        //终端管理
        {
          path: "/newTerminal",
          name: "商户新增终端",
          component: () => import("../pages/Terminal/newTerminal"),
          meta: {
            requireAuth: true,
            toolParams: 'ADD_TERMINAL'
          }
        },
        {
          path: "/terminalResult",
          name: "新增商户终端结果",
          component: () => import("../pages/Terminal/terminalResult")
        },
        {
          path: "/Terminal/terminalAuditQuery",
          name: "商户终端审核查询",
          component: () => import("../pages/Terminal/terminalAuditQuery")
        },
        {
          path: "/Terminal/terminalAuditQueryDetail/:id",
          name: "商户终端审核查询详情",
          component: () => import("../pages/Terminal/terminalAuditQueryDetail")
        },
        {
          path: "/Terminal/terminalInfoQuery",
          name: "商户终端信息查询",
          component: () => import("../pages/Terminal/terminalInfoQuery")
        },
        {
          path: "/Terminal/terminalInfoQueryDetail/:status/:id",
          name: "商户终端信息查询详情",
          component: () => import("../pages/Terminal/terminalInfoQueryDetail")
        },
        {
          path: "/Terminal/terminalQuery",
          name: "终端查询",
          component: () => import("../pages/Terminal/terminalQuery")
        },
        {
          path: "/Terminal/terminalStorage",
          name: "终端入库",
          component: () => import("../pages/Terminal/terminalStorage")
        },
        {
          path: "/Terminal/terminalTransfer",
          name: "终端划拨",
          component: () => import("../pages/Terminal/terminalTransfer"),
          meta: {
            requireAuth: true,
            toolParams: 'TRANSFER_TERMINAL'
          }
        },
        {
          path: "/Terminal/terminalCallback",
          name: "终端回调",
          component: () => import("../pages/Terminal/terminalCallback"),
          meta: {
            requireAuth: true,
            toolParams: 'CALLBACK_TERMINAL'
          }
        },
        {
          path: "/Terminal/SuperiorRecordQuery",
          name: "上级记录查询",
          component: () => import("../pages/Terminal/superiorRecordQuery")
        },
        // 活动管理

        // add 活动返现查询
        {
          path: '/activities/returnMoney',
          name: '活动返现查询',
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("../pages/activitiesManager/returnMoney")
        },
        {
          path: "/activities/activityDeductionQuery",
          name: "活动扣款查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("../pages/activitiesManager/activityDeductionQuery")
        },
        {
          path: "/activities/activityDeductionDetail/:id",
          name: "活动扣款查询详情",
          component: () => import("../pages/activitiesManager/activityDeductionDetail")
        },
        {
          path: "/activities/returnMoneyDownload",
          name: "返现明细下载",
          component: () => import("../pages/activitiesManager/returnMoneyDownload")
        },
        {
          path: "/activities/deductionDetailsDownload",
          name: "扣款明细下载",
          component: () => import("../pages/activitiesManager/deductionDetailsDownload")
        },
        // 风险扣款
        {
          path: "/riskManager/riskCutQuery",
          name: "风险扣款查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("../pages/risk/riskCutQuery")
        },
        // 风险扣款明细
        {
          path: "/riskManager/riskCutDetail/:id",
          name: "风险扣款查询详情",
          component: () => import("../pages/risk/riskCutDetail.vue")
        },
        // 营销管理
        {
          path: "/marketing/payInstalmentsQuery",
          name: "分期扣款查询",
          component: () => import("../pages/marketing/payInstalmentsQuery")
        },
        {
          path: "/marketing/payInstalmentsQueryDetail/:id",
          name: "分期扣款查询详情",
          component: () => import("../pages/marketing/payInstalmentsQueryDetail")
        },
        {
          path: "/marketing/customActivity",
          name: "商户活动自定义",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("../pages/marketing/customActivity")
        },
        {
          path: "/marketing/ActivityQuery",
          name: "商户活动查询",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("../pages/marketing/ActivityQuery")
        },
        {
          path: "/marketing/snRevoke/:begin/:end/:id",
          name: "商户活动自定义--sn设备号撤销",
          component: () => import("../pages/marketing/snRevoke")
        },
        {
          path: "/marketing/snRevokeDetail/:id",
          name: "商户活动自定义--sn设备号撤销详情",
          component: () => import("../pages/marketing/snRevokeDetail")
        },
        {
          path: "/marketing/alreadyActivity",
          name: "已参加活动",
          meta: {
            requireAuth: true,
            keepAlive: true
          },
          component: () => import("../pages/marketing/alreadyActivity/alreadyActivity")
        },
        {
          path: "/marketing/alreadyActivity/:id",
          name: "已参加活动详情",
          component: () => import("../pages/marketing/alreadyActivity/alreadyActivityDetail")
        },
        {
          path: "/marketing/lowerLevelParam/:id",
          name: "已参加活动--下级参数",
          component: () => import("../pages/marketing/alreadyActivity/lowerLevelParam")
        },
        {
          path: "/marketing/chargeBackQuery/:id",
          name: "本级考核查询",
          component: () => import("../pages/marketing/alreadyActivity/chargeBackQuery")
        },
        {
          path: "/marketing/lowerLevelQuery/:id",
          name: "下级考核查询",
          component: () => import("../pages/marketing/alreadyActivity/lowerLevelQuery")
        },
        {
          path: "/marketing/cashBackQuery/:id",
          name: "已参加活动--返现查询",
          component: () => import("../pages/marketing/alreadyActivity/cashBackQuery")
        },
        {
          path:"/not/permission",
          name:"notPermission",
          component: ()=>import("@/pages/notPermission")
        },
      ]
    },
    {
      path: "*",
      name: "NotFoundComponent",
      component: () => import("@/components/Notfound")
    }
  ]
});
